const EventEmitter = require('events');


class MyEventEmitter extends EventEmitter {}

const events = new MyEventEmitter()

events.on('play', (data) => {
  console.log('play', data);
})
events.on('play', (data) => {
  console.log('play', data);
})
events.on('love', (data) => {
  console.log('love', data);
})



events.emit('play', { name: '张三' })
events.emit('play', { name: '张三san' })
events.emit('love', { name: '我和我的祖国' })
